<?php

use think\migration\Seeder;

class AdminSeed extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        db('admin')->insert(['username' => 'admin', 'password' => password_hash('123456',PASSWORD_DEFAULT), 'nickname' => '凌风']);
    }
}